package cn.cqie.frame.mapper;

import cn.cqie.frame.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XYHL
 * @since 2021-10-09
 */
public interface DeptMapper extends BaseMapper<Dept> {
    /**
     * 获取全部的部门信息
     * @return
     */
    @Select("SELECT id,`code`,`name` FROM dept")
    List<Dept> listDept();
}
